//
//  UIButton+Gradient.h
//  THBaseBus
//
//  Created by zlx on 2023/2/18.
//

#import <UIKit/UIKit.h>
#import "WHGradientHelper.h"

NS_ASSUME_NONNULL_BEGIN

@interface UIButton (Gradient)

/*
 渐进色
 */
- (void)setBtnGradientStartColor:(UIColor *)startColor EndColor:(UIColor *)endColor size:(CGSize)size GradientType:(WHGradientDirection)gradientType;

- (void)setButtonRoundCorner:(CGRect)rect
                byRectCorner:(UIRectCorner)corners
                 cornerRadii:(CGSize)cornerRadii;


/**
 *  倒计时按钮
 *
 *  @param timeLine 倒计时总时间
 *  @param title    还没倒计时的title
 *  @param subTitle 倒计时中的子名字，如时、分
 *  @param mColor   还没倒计时的颜色
 *  @param color    倒计时中的颜色
 */
- (void)startWithTime:(NSInteger)timeLine title:(NSString *)title countDownTitle:(NSString *)subTitle mainColor:(UIColor *)mColor countColor:(UIColor *)color;


@end

NS_ASSUME_NONNULL_END
